# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=sblg
pkgver=0.5.11
pkgrel=0
pkgdesc="static blog utility"
url="https://kristaps.bsd.lv/sblg/"
arch="all"
license="ISC"
makedepends="bmake expat-dev"
subpackages="$pkgname-doc"
source="https://kristaps.bsd.lv/sblg/snapshots/sblg-$pkgver.tar.gz"

build() {
	./configure MANDIR=/usr/share/man PREFIX=/usr LDFLAGS="$LDFLAGS"
	bmake
}

check() {
	bmake regress
}

package() {
	bmake DESTDIR="$pkgdir" install
}

doc() {
	default_doc
	amove usr/share/sblg/examples
}

sha512sums="
2741ce27172d702b2f0165d2fe796896fbc2a08b838e486aa61b9ccfe629ba0a09d5e1e9bbea168425c592bb39ae1cc073e0259772009bad5c7186f64558c93c  sblg-0.5.11.tar.gz
"
